package com.cj.allTest.genericity;

import org.junit.Test;

import java.util.ArrayList;

/**
 * @author chan
 * @dateTime 2023/7/5  10:27:54
 */
public class GenericityTest {
    @Test
    public void method(){
        ArrayList<String> list = new ArrayList<String>();
        list.add("菜鸟明。");
        String string = list.get(0);
    }
    //可以用Object数组来设计ArrayList类


}
